/**
 * Created by zzc on 2017/11/15.
 */
import React, {Component} from 'react';

import {
    View,
    Image,
    Text,
    StyleSheet
} from 'react-native';

import {
    StackNavigator,
    TabNavigator
} from 'react-navigation';

export default class HomeSayComponent extends React.Component {
    render() {
        return (
            <View>
                <View style={styles.container}>
                    <View style={{flexDirection:'row',alignItems:'center'}}>
                        <Image source={{uri:'http://img.ishangzu.com/woju/2017/4/30/15/03eb16ca-dbca-4133-81f4-20eeb05f90e7.jpg'}}
                               style={styles.imgStyle}/>

                        <Text style={{fontSize:12,marginLeft:5,color:'black'}}>
                            "你家的房子住得很温馨，谢谢你们一年的陪伴。"
                        </Text>
                    </View>
                    {/*<Text style={{fontSize:12,marginLeft:5,color:'black',position:'absolute'}}>
                        "by 西溪天然寿司卷子"
                    </Text>*/}
                </View>
                <View style={styles.containerBottom}>

                    <Text style={styles.textStyle2}>将房租委托给爱上租</Text>
                </View>

            </View>
        );
    }
}

const styles = StyleSheet.create({
    container:{
        height:60,
        backgroundColor:'white',
        paddingLeft:5,
        paddingRight:5,
        flexDirection:'column',
        justifyContent:'center'
    },

    containerBottom:{
        height:70,
        alignItems:'center',
        justifyContent:'center'
    },

    imgStyle: {
        width:46,
        height:46,
        // 设置图片填充模式
        resizeMode:'cover',
        // 设置圆角
        borderRadius:23,
        // 设置图片位置
        marginLeft:10
    },
    textStyle:{
        fontSize:12,
        marginLeft:5,
        color:'black',
        textAlign:'right',
        position:'absolute'
    },

    textStyle2:{
        backgroundColor:'white',
        paddingLeft:7,
        paddingRight:7,
        paddingTop:5,
        paddingBottom:5,
        color:'black'
    }
});
